package net.jkdmanager.common.plugins.directors;

import net.jkdmanager.common.api.plugins.AppInfoI;
import net.jkdmanager.common.api.plugins.DirectorI;
import net.jkdmanager.common.api.plugins.annotations.Plugin;
import net.jkdmanager.common.api.plugins.annotations.PluginProperty;

import org.springframework.stereotype.Service;

@Service
@Plugin(
		key="ManualDirector",
		title="Manual",
		properties= { 
				@PluginProperty(key="enabled")
				}
		)
public class ManualDirector implements DirectorI {
	
	public boolean shallBeRunning(AppInfoI appInfo) {
		
		boolean enabled = Boolean.parseBoolean(appInfo.getDirectorProperty("enabled"));
		return enabled;
		
	}

}
